/**
 * 
 */
package design_pattern.visitor.pc;

/**
 * @author linzq
 *
 */
public class Client {

  /**
   * @param args
   */
  public static void main(String[] args) {
    InventoryVisitor iv = new InventoryVisitor();
    PriceVisitor pv = new PriceVisitor();
    Equipment equip = new PC();
    equip.accept(iv);
    System.out.println("Number of parts:" + iv.size());
    equip.accept(pv);
    System.out.println("Price:" + pv.value());
  }

}
